/**
 * 钉钉api接口
 */
export default {

    //AppKey
    appKey: "dingodv559k3bpi0gpny",
    //AppSecret
    appSecret: "Qf6enZzd08hkODKcanSyhOpDqf3W3-3DbaKx5KR-IK4OmxvsZLYF4kzgSmVAcSrr",
    token: "wxdemotoken",
    //获取access_token 有效时间2个小时
    GET_TOKEN: 'https://oapi.dingtalk.com/gettoken',
    //获取用户信息
    GET_USER_INFO: 'https://oapi.dingtalk.com/user/getuserinfo',

    //消息通知
    //发送工作通知消息
    SEND_WORK_NOTICE: 'https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2',
    //查询工作通知消息的发送进度
    GET_SEND_PROGRESS: 'https://oapi.dingtalk.com/topapi/message/corpconversation/getsendprogress',
    //查询工作通知消息的发送结果
    GET_SEND_RESULT:'https://oapi.dingtalk.com/topapi/message/corpconversation/getsendresult',
    //工作通知消息撤回
    RECALL:'https://oapi.dingtalk.com/topapi/message/corpconversation/recall',
    //发送群消息
    CHAT_SEND: 'https://oapi.dingtalk.com/chat/send',
    //查询群消息已读人员列表
    GET_READ_LIST: 'https://oapi.dingtalk.com/chat/getReadList?access_token=ACCESS_TOKEN&messageId=MESSAGEID&cursor=CURSOR&size=SIZE',
    //创建会话
    CHAT_CREATE: 'https://oapi.dingtalk.com/chat/create',
    //修改会话
    CHAT_UPDATE: 'https://oapi.dingtalk.com/chat/update',
    //获取会话
    CHAT_GET: 'https://oapi.dingtalk.com/chat/get',
    //发送普通消息
    SEND_TO_CONVERSATION: 'https://oapi.dingtalk.com/message/send_to_conversation',


    //用户管理
    //创建用户
    USER_CREATE: 'https://oapi.dingtalk.com/user/create?access_token=ACCESS_TOKEN',
    //更新用户
    USER_UPDATE: 'https://oapi.dingtalk.com/user/update',
    //删除用户
    USER_REMOVE: 'https://oapi.dingtalk.com/user/delete',
    //获取用户详细信息
    GET_USER: 'https://oapi.dingtalk.com/user/get',
    //获取部门用户userid列表
    GET_DEPT_MEMBER: 'https://oapi.dingtalk.com/user/getDeptMember',
    //获取部门用户
    GET_SIMPLE_LIST: 'https://oapi.dingtalk.com/user/simplelist',
    //获取部门用户详情
    GET_USER_BY_DEPT: 'https://oapi.dingtalk.com/user/listbypage',
    //获取管理员列表
    GET_ADMINS: 'https://oapi.dingtalk.com/user/get_admin',
    //获取管理员通讯录权限范围
    GET_ADMIN_SCOPE: 'https://oapi.dingtalk.com/topapi/user/get_admin_scope',
    //根据unionid获取userid
    GET_USERID_BY_UNIONID: 'https://oapi.dingtalk.com/user/getUseridByUnionid',
    //根据手机号获取userid
    GET_BY_MOBILE: 'https://oapi.dingtalk.com/user/get_by_mobile',
    //获取企业员工人数
    GET_ORG_USER_COUNT: 'https://oapi.dingtalk.com/user/get_org_user_count',
    //未登录钉钉的员工列表
    GET_INACTIVE_USER: 'https://oapi.dingtalk.com/topapi/inactive/user/get',

    //部门管理
    //创建部门
    DEPT_CREATE: 'https://oapi.dingtalk.com/department/create',
    //更新部门
    DEPT_UPDATE: 'https://oapi.dingtalk.com/department/update',
    //删除部门
    DEPT_REMOVE: 'https://oapi.dingtalk.com/department/delete',
    //获取子部门ID列表(该接口能获取到企业部门下的所有直属子部门列表，不受授权范围限制，ISV可以根据该接口完成企业部门的遍历)
    LIST_IDS: 'https://oapi.dingtalk.com/department/list_ids',
    //获取部门列表
    DEPT_LIST: 'https://oapi.dingtalk.com/department/list',
    //获取部门详情
    GET_DEPT_DETAIL: 'https://oapi.dingtalk.com/department/get',
    //查询部门的所有上级父部门路径
    LIST_PARENT_DEPTS_BY_DEPT: 'https://oapi.dingtalk.com/department/list_parent_depts_by_dept',
    //查询指定用户的所有上级父部门路径
    LIST_PARENT_DEPTS: 'https://oapi.dingtalk.com/department/list_parent_depts',


    //角色管理

    //获取角色列表
    ROLE_LIST: 'https://oapi.dingtalk.com/topapi/role/list',
    //获取角色下的员工列表
    ROLE_SIMPLELIST: 'https://oapi.dingtalk.com/topapi/role/simplelist',
    //获取角色组
    GET_ROLE_GROUP: 'https://oapi.dingtalk.com/topapi/role/getrolegroup',
    //获取角色详情
    GET_ROLE: 'https://oapi.dingtalk.com/topapi/role/getrole',
    //创建角色
    ADD_ROLE: 'https://oapi.dingtalk.com/role/add_role',
    //更新角色
    UPDATE_ROLE: 'https://oapi.dingtalk.com/role/update_role',
    //删除角色
    DELETE_ROLE: 'https://oapi.dingtalk.com/topapi/role/deleterole',
    //创建角色组
    ADD_ROLE_GROUP: 'https://oapi.dingtalk.com/role/add_role_group',
    //批量增加员工角色
    ADD_ROLES_FOREMPS: 'https://oapi.dingtalk.com/topapi/role/addrolesforemps',
    //批量删除员工角色
    REMOVE_ROLES_FOREMPS: 'https://oapi.dingtalk.com/topapi/role/removerolesforemps',
    //设定角色成员管理范围
    ROLE_SCOPE_UPDATE: 'https://oapi.dingtalk.com/topapi/role/scope/update',


    //外部联系人
    //获取外部联系人标签列表
    LIST_LABEL_GROUPS: 'https://oapi.dingtalk.com/topapi/extcontact/listlabelgroups',
    //获取外部联系人列表
    EXTCONTACT_LIST: 'https://oapi.dingtalk.com/topapi/extcontact/list',
    //获取外部联系人详情
    GET_EXTCONTACT: 'https://oapi.dingtalk.com/topapi/extcontact/get',
    //添加外部联系人
    CREATE_EXTCONTACT: 'https://oapi.dingtalk.com/topapi/extcontact/create',
    //更新外部联系人
    UPDATE_EXTCONTACT: 'https://oapi.dingtalk.com/topapi/extcontact/update',
    //删除外部联系人
    DELETE_EXTCONTACT: 'https://oapi.dingtalk.com/topapi/extcontact/delete',






    //智能人事

    //根据员工userid，批量访问员工花名册字段信息
    EMPLOYEE_LIST: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/list',
    //分页查询企业待入职员工userid列表。
    EMPLOYEE_PREENTRY: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/querypreentry',
    //分页查询企业在职员工userid列表。
    EMPLOYEE_ON_JOB: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/queryonjob',
    //分页查询企业离职员工userid列表。
    EMPLOYEE_DISSMISSION: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/querydimission',
    //根据员工userid列表，批量查询员工的离职信息。传入非离职员工userid，不会返回信息。
    LIST_DISSMISSIOIN: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/listdimission',
    //此接口用于添加人员到企业待入职，并不同步员工详细档案信息
    ADD_PREENTRY: 'https://oapi.dingtalk.com/topapi/smartwork/hrm/employee/addpreentry'

    //
}





